package com.b.controller;

import com.b.domain.ProductCategory;
import com.b.domain.VideoTag;
import com.b.service.VideoTagService;
import com.b.service.impl.VideoTagServiceImpl;
import com.b.vo.Result;
import jakarta.annotation.Resource;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.elasticsearch.core.SearchPage;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 视频标签表(video_tag)表控制层
 *
 * @author xxxxx
 */
@RestController
@RequestMapping("/video_tag")
public class VideoTagController {
    /**
     * 服务对象
     */
    @Resource
    private VideoTagService videoTagService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public VideoTag selectOne(Integer id) {
        return videoTagService.selectByPrimaryKey(id);
    }




}
